package autopilot {	
	import flash.events.ErrorEvent;	
	import flash.events.Event;	
	import flash.events.IOErrorEvent;	
	import flash.events.TimerEvent;	
	import flash.net.URLLoader;	
	import flash.net.URLRequest;	
	import flash.utils.Timer;	
	
	import autopilot.Building;	
	
	import com.googlecode.milib.abstract.MLBroadcastClass;	
	import com.googlecode.milib.dbg.SimpleTrace;	
	import com.googlecode.milib.util.MLStringUtil;		
	/**
	 * @author Marek Brun 'minim'
	 */
	public class OGameAutopilot extends MLBroadcastClass {
				public const event_LoggingSuccesfull : Object = {name:'LoggingSuccesfull'};		public const event_LoggingFail : Object = {name:'LoggingFail'};		
		private var domain:String;		
		private var sid:String;		
		private var loadHTML:URLLoader;				private var timer:Timer;				private var loadLogin:URLLoader;
				public function OGameAutopilot() {
			timer=new Timer(1000*60, 1);			timer.addEventListener(TimerEvent.TIMER, onTimer);			SimpleTrace.trace('OGame Autopilot');		}//<>
		
		public function start(domain:String, login:String, pass:String):void {			//http://s11.ogame.onet.pl/game/reg/login2.php?v=2&universe=s11.ogame.onet.pl&login=****&pass=********&button.x=27&button.y=1
			this.domain=domain;
			//http://s11.ogame.onet.pl/game/index.php?page=b_building&session=*********						loadLogin=new URLLoader();			loadLogin.addEventListener(Event.COMPLETE, onLoadLoginComplete);
			loadLogin.addEventListener(Event.COMPLETE, onLoadHTMLComplete);
			loadLogin.addEventListener(IOErrorEvent.IO_ERROR, onLoadHTMLIO_ERROR);
			loadLogin.addEventListener(IOErrorEvent.NETWORK_ERROR, onLoadHTMLIO_ERROR);
			loadLogin.addEventListener(IOErrorEvent.VERIFY_ERROR, onLoadHTMLIO_ERROR);
			loadLogin.addEventListener(ErrorEvent.ERROR, onLoadHTMLERROR);			var loadLoginURL:URLRequest=new URLRequest('http://'+domain+'/game/reg/login2.php?v=2&universe='+domain+'&login='+login+'&pass='+pass+'&button.x=27&button.y=1');			loadLogin.load(loadLoginURL);						loadHTML=new URLLoader();			loadHTML.addEventListener(Event.COMPLETE, onLoadHTMLComplete);			loadHTML.addEventListener(IOErrorEvent.IO_ERROR, onLoadHTMLIO_ERROR);			loadHTML.addEventListener(IOErrorEvent.NETWORK_ERROR, onLoadHTMLIO_ERROR);			loadHTML.addEventListener(IOErrorEvent.VERIFY_ERROR, onLoadHTMLIO_ERROR);			loadHTML.addEventListener(ErrorEvent.ERROR, onLoadHTMLERROR);		}//<<				protected function loadAndDecide():void {
			loadHTML.load(new URLRequest('http://'+domain+'/game/index.php?page=b_building&session='+sid));		}//<<				protected function exeLink(link:String):void {			var buildURL:URLRequest=new URLRequest('http://'+domain+'/game/'+link);			var buildLoad:URLLoader=new URLLoader();			buildLoad.load(buildURL);		}//<<				protected function doWaitingForMaterials(buildingName:String):void {			SimpleTrace.trace('Oczekiwanie na materiały do rozbudowy '+buildingName);			timer.delay=1000*60*int(1+Math.random()*9);			timer.start();		}//<<				protected function startBuild(building:Building, message:String):void {			exeLink(building.buildLink);			SimpleTrace.trace(message+' ('+building.time.getHours()+':'+building.time.getMinutes()+'.'+building.time.getSeconds()+')');			wait();		}//<<				protected function think(html:String):void {			//System.setClipboard(loadHTML.data);			var rawMaterials:Array=MLStringUtil.getBetweens(html, "<td (.*?)width=\"90\"><font >", '</td>');			var i:uint;			var loopRawMaterial:String;			for(i=0;i<rawMaterials.length;i++){				loopRawMaterial=rawMaterials[i];				loopRawMaterial=loopRawMaterial.replace('</font>', '');				loopRawMaterial=loopRawMaterial.replace('.', '');							}			var metal:Number=Number(rawMaterials[0]);			var krysztal:Number=Number(rawMaterials[1]);			var deuter:Number=Number(rawMaterials[2]);			var energiaBilans:Number, energia:Number;			if(rawMaterials[3]){				rawMaterials[3]=rawMaterials[3].replace('</font>', '');				energiaBilans=Number(String(rawMaterials[3]).split('/')[0]);				energia=Number(String(rawMaterials[3]).split('/')[1]);			}else{				rawMaterials[3]=MLStringUtil.getBetweens(html, '<td align="center" class=.header. width="90"><font color=.#ff0000.>', '</td>')[0];				rawMaterials[3]=rawMaterials[3].replace('</font>', '');				energiaBilans=Number(String(rawMaterials[3]).split('/')[0]);				energia=Number(String(rawMaterials[3]).split('/')[1]);			}			//			SimpleTrace.trace(energiaBilans+':'+energia);						var kopalniametaluLevel:Number=Number(MLStringUtil.getBetweens(html, MLStringUtil.literal("Kopalnia metalu</a></a> (Poziom "), MLStringUtil.literal(")<br>Dostawca g"))[0]);			var kopalniakrysztaluLevel:Number=Number(MLStringUtil.getBetweens(html, "Kopalnia (.+)</a></a> [(]Poziom ", MLStringUtil.literal(")<br>Dostawca g"))[0]);			var ekstraktorLevel:Number=Number(MLStringUtil.getBetweens(html, MLStringUtil.literal("Ekstraktor deuteru</a></a> (Poziom "), MLStringUtil.literal(")<br>Oddziela atomy "))[0]);			var Level:Number=Number(MLStringUtil.getBetweens(html, "Elektrownia (.+)</a></a> [(]Poziom ", MLStringUtil.literal(")<br>Elektrownia"))[0]);						//wymagania budowy			//statków kosmicznych.<br>Wymagania: Metal: <b>5.189</b>			var timePatt:String='( [0-9]+godz[.])?( [0-9]+min[.])?( [0-9]+sek[.])?';			var wymaganiaPatt:String='Wymagania: Metal: <b>[0-9.]+</b> Kryszta.: <b>[0-9.]+</b>( Deuter: <b>[0-9.]+</b>)?<br>Czas uko.czenia:'+timePatt+'<br>(<td class=l><a href=index[.]php[?]page=b_building&session=[0-9a-zA-Z]+&bau=[0-9]+&cp=[0-9a-zA-Z]+>)?';						var kopalniametalu:Building=new Building(				html.match(new RegExp('statków kosmicznych[.]<br>'+wymaganiaPatt, 'm'))[0]			);			var kopalniakrysztalu:Building=new Building(				html.match(new RegExp('elektronicznych i stopów metali[.]<br>'+wymaganiaPatt, 'm'))[0]			);			var ekstraktor:Building=new Building(				html.match(new RegExp('znajduj.cej si. na planecie[.]<br>'+wymaganiaPatt, 'm'))[0]			);			var elektrownia:Building=new Building(				html.match(new RegExp('energii do ich eksploatacji[.]<br>'+wymaganiaPatt, 'm'))[0]			);			var fabrykaRobotów:Building=new Building(				html.match(new RegExp('powstawania budowli[.]<br>'+wymaganiaPatt, 'm'))[0]			);									if(html.indexOf('t()')==-1) {				if(energiaBilans<0) {					if(elektrownia.buildLink){						startBuild(elektrownia, 'Za mało energii, rozpoczęto rozbudowę elektrownii słonecznej');					}else{						doWaitingForMaterials('elektrownii słonecznej');					}				}else if(					kopalniametalu.time.getHours()>10 ||					kopalniametalu.time.getHours()>10 ||					ekstraktor.time.getHours()>10 ||					elektrownia.time.getHours()>10				){					if(fabrykaRobotów.buildLink){						startBuild(fabrykaRobotów, 'Za mało robotów, rozpoczęto rozbudowę fabryki robotów');					}else{						doWaitingForMaterials('fabryki robotów');					}				}else{					if(kopalniakrysztaluLevel<kopalniametaluLevel){						if(kopalniakrysztalu.buildLink){							startBuild(kopalniakrysztalu, 'Rozpoczęto rozbudowę kopalni kryształu');						}else{							doWaitingForMaterials('kopalni kryształu');						}					}else if(ekstraktorLevel<kopalniakrysztaluLevel) {						if(ekstraktor.buildLink){							startBuild(ekstraktor, 'Rozpoczęto rozbudowę ekstraktora deuteru');						}else{							doWaitingForMaterials('ekstraktora deuteru');						}					}else{						if(kopalniametalu.buildLink){							startBuild(kopalniametalu, 'Rozpoczęto rozbudowę kopalni metalu');						}else{							doWaitingForMaterials('kopalni metalu');						}					}				}			}else{				SimpleTrace.trace('Trwa budowa... Następne sprawdzenie za około '+wait()+' minut');			}			//Kopalnia metalu</a></a> (Poziom 11)<br>Dostawca głównego surowca do budowy konstrukcji no¶nych budynków i statków kosmicznych.<br>Wymagania: Metal: <b>5.189</b> Kryształ: <b>1.297</b><br>Czas ukończenia: 31min. 8sek.<br><td class=l><a href=index.php?page=b_building&session=5c671c7f7814&bau=1&cp=34722476><font color=#00FF00>Rozbudowa<br> na poziom  12</font>//Kopalnia kryształu</a></a> (Poziom 9)<br>Dostawca głównego surowca do budowy elementów elektronicznych i stopów metali.<br>Wymagania: Metal: <b>3.298</b> Kryształ: <b>1.649</b><br>Czas ukończenia: 23min. 44sek.<br><td class=l><a href=index.php?page=b_building&session=5c671c7f7814&bau=2&cp=34722476><font color=#00FF00>Rozbudowa<br> na poziom  10</font>//Ekstraktor deuteru</a></a> (Poziom 8)<br>Oddziela atomy deuteru (ciężkiego izotopu wodoru) od atomów lekkiego wodoru z wody znajduj±cej się na planecie.<br>Wymagania: Metal: <b>5.766</b> Kryształ: <b>1.922</b><br>Czas ukończenia: 36min. 54sek.<br><td class=l><a href=index.php?page=b_building&session=5c671c7f7814&bau=3&cp=34722476><font color=#00FF00>Rozbudowa<br> na poziom  9</font>//Elektrownia słoneczna</a></a> (Poziom 13)<br>Elektrownia słoneczna pozyskuje energię z promieniowania słonecznego. Prawie wszystkie budynki potrzebuj± energii do ich eksploatacji.<br>Wymagania: Metal: <b>14.596</b> Kryształ: <b>5.838</b><br>Czas ukończenia: 1godz. 38min. 5sek.<br><td class=l><a href=index.php?page=b_building&session=5c671c7f7814&bau=4&cp=34722476><font color=#00FF00>Rozbudowa<br> na poziom  14</font>			//			if(energiaBilans<0) {//				SimpleTrace.trace('Brak energii, buduję elektrownię');//			}		}//<<
		
		/**
		 * @return minutes to the next thinking
		 */
		protected function wait():int {
			var minutes:int=int(5+Math.random()*5);
			timer.delay=1000*60*minutes+30*1000-int(Math.random()*60*1000);
			timer.start();
			return minutes;
		}//<<				public function getGameURL():URLRequest {			return new URLRequest('http://'+domain+'/game/index.php?page=b_building&session='+sid);		}//<<		//********************************************************************************************//		events for OGameAutopilot//********************************************************************************************		protected function onLoadHTMLComplete(event:Event):void {			think(loadHTML.data);		}//<<				protected function onLoadLoginComplete(event:Event):void {
			try{				//<meta http-equiv='refresh' content='0; URL=/game/index.php?page=overview&session=13e3ec81ec7e&lgn=1'>				sid=MLStringUtil.getBetweens(loadLogin.data, 'session=', '&lgn=')[0];				if(sid.length>5){					SimpleTrace.trace('Zalogowano');					broadcastEvent(event_LoggingSuccesfull);					loadAndDecide();				}else{					SimpleTrace.trace('Nieudane logowanie');					broadcastEvent(event_LoggingFail);				}
			}catch(e:TypeError) {
				SimpleTrace.trace('Nieudane logowanie');
				broadcastEvent(event_LoggingFail);
			}		}//<<
				protected function onTimer(event:TimerEvent):void {			loadAndDecide();		}//<<
		
		protected function onLoadHTMLIO_ERROR(event:IOErrorEvent):void {
			SimpleTrace.trace('Wystąpił błąd:\n'+event.text);
		}//<<
		
		protected function onLoadHTMLERROR(event:ErrorEvent):void {
			SimpleTrace.trace('Wystąpił błąd:\n'+event.text);
		}//<<
				
	}
}/*
<html>  <head>   <link rel='stylesheet' type='text/css' href='css/default.css' />  <link rel='stylesheet' type='text/css' href='css/formate.css' />  <link rel="stylesheet" type="text/css" href="http://s11.ogame.onet.pl/evolution/formate.css" />   <meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />    <link rel="stylesheet" type="text/css" href="css/combox.css"><title>Uni11 OGame.pl</title>     <script src="js/utilities.js" type="text/javascript"></script>  <script language="JavaScript1.3" src="js/euDock.2.0.js"></script>  <script language="JavaScript1.3" src="js/euDock.Image.js"></script>     <script language="JavaScript1.3" src="js/euDock.Label.js"></script>     <script language="JavaScript">  </script><!-- HEADER --><!-- (C) 2000-2007 Gemius SA - gemiusTraffic / ver 11.1 / ogame_odslony --><script type="text/javascript">var gemius_identifier = new String('zaeb8Cd4AOu5wv77IsdhhNU5P5zZvce.RCO5LfSZd5P.27');</script><script type="text/javascript" src="http://onet.hit.gemius.pl/gemius.js"></script>	<style type="text/css"><!--body {    margin-left: 0px;    margin-top: 0px;    margin-right: 0px;    margin-bottom: 0px;}.tlo {    background-color: #404040;    font-family: Verdana, Arial, Helvetica, sans-serif;    font-size: 9px;    font-style: normal;    line-height: normal;    font-weight: normal;    font-variant: normal;    color: #FFFFFF;    text-decoration: none;    padding: 0px;    margin:0px;    border:0px;}--></style></head><body><script language="JavaScript" src="js/wz_tooltip.js"></script>    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tlo"> <tr>  <td class="tlo">   <table width="85%" border="0" align="center" cellpadding="0" cellspacing="0" class="tlo">    <tr class="tlo">     <td class="tlo">      <table border="0" align="right" cellpadding="0" cellspacing="0">       <tr class="tlo">        <td class="tlo">&nbsp;</td>        <td class="tlo" align="right"><span>PARTNER </span></td>        <td class="tlo"><a target="_blank" href="http://www.onet.pl/" ><img src="img/pl_logo.gif" width="70" height="20" /></a></td>       </tr>      </table>     </td>    </tr>   </table>  </td> </tr></table><div id='header_top'><center><table class='header'><tr class='header' ><td class='header' style='width:32;' >	  <table class='header'>    <tr class='header'>     <td class='header'><img src="http://s11.ogame.onet.pl/evolution/planeten/small/s_normaltempplanet06.jpg" width="50" height="50"></td>     <td class='header'>	  <table class='header'>		  <select size="1" onchange="haha(this)">		  			  			  				  <option value="/game/index.php?page=b_building&session=cc27cd361a3d&cp=34722476&mode=&gid=&messageziel=&re=0" selected>Planeta matka				  <a href="index.php?page=galaxy&galaxy=3&system=174&position=7&session=cc27cd361a3d" >[3:174:7]</a></option> 			  		  </select>	  </table>     </td>    </tr>  </table>  </td><td class='header'>   <table class='header' id='resources' border="0" cellspacing="0" cellpadding="0" padding-right:30px;'>	    <tr class='header'>	    		     <td align="center" width="85" class='header'>		      <img border="0" src="http://s11.ogame.onet.pl/evolution/images/metall.gif" width="42" height="22">		     </td>		     		     <td align="center" width="85" class='header'>		      <img border="0" src="http://s11.ogame.onet.pl/evolution/images/kristall.gif" width="42" height="22">		     </td>		     		     <td align="center" width="85" class='header'>		      <img border="0" src="http://s11.ogame.onet.pl/evolution/images/deuterium.gif" width="42" height="22">		     </td>	     		     		     <td align="center" width="85" class='header'>		      <img border="0" src="img/dm_klein_2.jpg" width="42" height="22">		     </td>	     	        		     		     <td align="center" width="85" class='header'>		      <img border="0" src="http://s11.ogame.onet.pl/evolution/images/energie.gif" width="42" height="22">		     </td>	    </tr>	    <tr class='header'>	     <td align="center" class='header' width="85"><i><b><font color="#ffffff">Metal</font></b></i></td>	     <td align="center" class='header' width="85"><i><b><font color="#ffffff">Kryszta³</font></b></i></td>	     <td align="center" class='header' width="85"><i><b><font color="#ffffff">Deuter</font></b></i></td>	     	     	<td align="center" class='header' width="85"><i><b><font color="#ffffff">Antymateria</font></b></i></td>		          	     <td align="center" class='header' width="85"><i><b><font color="#ffffff">Energia</font></b></i></td>	    </tr>	    <tr class='header'>	     <td align="center" class='header' width="90"><font >7.087</font></td>	     <td align="center" class='header' width="90"><font >5.072</font></td>	     <td align="center" class='header' width="90"><font >5.054</font></td>	     			 <td align="center" class='header' width="90"><font color="#FFFFFF">0</font></DIV></td>	        	     <td align="center" class='header' width="90"><font >90</font>/753</td>	    </tr>   </table></td>	<td class='header'><table class='header' align=left>	 <tr class='header'>	  	 <td align="center" width="35" class='header'>	     <a href='index.php?page=micropayment&session=cc27cd361a3d&session=cc27cd361a3d' accesskey="k">  	  <img border="0" src="/game/img/commander_ikon_un.gif" width="32" height="32" onmouseover="Tip('<center><font size=1 color=white><b><br>Komandor OGame</font><br><br><font size=1 color=lime>Zamów teraz!</b></font></center>',WIDTH, 110,STICKY, 1,STICKY, false,DURATION, 2500,BGCOLOR, '#344566',BORDERCOLOR, '#415680',BORDERSTYLE, 'double',BORDERWIDTH, 3);">	  </a>	 </td>	 <td align="center" width="35" class='header'>	  <a href='index.php?page=micropayment&session=cc27cd361a3d&session=cc27cd361a3d' accesskey="k">	  <img border="0" src="/game/img/admiral_ikon_un.gif" width="32" height="32" onmouseover="Tip('<center><font size=1 color=white><b><br>Admira³ floty</font><br><font size=1 color=skyblue>&nbsp;maks. ilo¶æ flot +2</font><br><br><font size=1 color=lime>Zamów teraz!</b></font></center>',WIDTH, 120,STICKY, 1,STICKY, false,DURATION, 2500,BGCOLOR, '#344566',BORDERCOLOR, '#415680',BORDERSTYLE, 'double',BORDERWIDTH, 3);">	  </a>	 </td>	 <td align="center" width="35" class='header'>	  <a href='index.php?page=micropayment&session=cc27cd361a3d&session=cc27cd361a3d' accesskey="k">	  <img border="0" src="/game/img/ingenieur_ikon_un.gif" width="32" height="32" onmouseover="Tip('<center><font size=1 color=white><b><br>Mechanik</font><br><font size=1 color=skyblue>Zmniejsza straty w obronie o po³owê,<br>+10% wiêcej energii</font><br><br><font size=1 color=lime>Zamów teraz!</b></font></center>',WIDTH, 140,STICKY, 1,STICKY, false,DURATION, 2500,BGCOLOR, '#344566',BORDERCOLOR, '#415680',BORDERSTYLE, 'double',BORDERWIDTH, 3);">	  </a>	 </td>	 <td align="center" width="35" class='header'>	  <a href='index.php?page=micropayment&session=cc27cd361a3d&session=cc27cd361a3d' accesskey="k">	  <img border="0" src="/game/img/geologe_ikon_un.gif" width="32" height="32" onmouseover="Tip('<center><font size=1 color=white><b><br>Geolog</font><br><font size=1 color=skyblue>produkcja kopalni +10%</font><br><br><font size=1 color=lime>Zamów teraz!</b></font></center>',WIDTH, 110,STICKY, 1,STICKY, false,DURATION, 2500,BGCOLOR, '#344566',BORDERCOLOR, '#415680',BORDERSTYLE, 'double',BORDERWIDTH, 3);">	  </a>	 </td>	 <td align="center" width="35" class='header'>	  <a href='index.php?page=micropayment&session=cc27cd361a3d&session=cc27cd361a3d' accesskey="k"> 	  <img border="0" src="/game/img/technokrat_ikon_un.gif" width="32" height="32" onmouseover="Tip('<center><font size=1 color=white><b><br>Technokrata</font><br><font size=1 color=skyblue>+2 poziomy szpiegowania,<br>25% krótszy czas badañ</font><br><br><font size=1 color=lime>Zamów teraz!</b></font></center>',WIDTH, 140,STICKY, 1,STICKY, false,DURATION, 2500,BGCOLOR, '#344566',BORDERCOLOR, '#415680',BORDERSTYLE, 'double',BORDERWIDTH, 3);">	  </a>	 </td>	 <td align="center" class='header'></td>	</tr></table></td></tr></table></div><!-- END HEADER --><!-- LEFTMENU -->	<div id='leftmenu'>	<script language="JavaScript">function fenster(target_url,win_name) {  var new_win = window.open(target_url,win_name,'resizable=yes,scrollbars=yes,menubar=no,toolbar=no,width=550,height=280,top=0,left=0');  new_win.focus();}</script><script language="JavaScript">function popUp(URL) {  day = new Date();  id = day.getTime();  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=120,height=60,alwaysLowered=Yes');");}</script><center><div id='menu'><a href="mailto:barrierefrei@ogame.de" title="Dla problemów specyficznych dla niewidomych wy¶lij e-mail na barrierefrei@ogame.de." style="width:1px;"></a><p style="width:110px;"><NOBR>Universum 11 (<a href="index.php?page=changelog&session=cc27cd361a3d">v 0.77b</a>)</NOBR></p><table width="110" cellspacing="0" cellpadding="0"> <tr>   <td><img src="http://s11.ogame.onet.pl/evolution/gfx/ogame-produktion.jpg" width="110" height="40" /></td> </tr>   <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=overview&session=cc27cd361a3d' accesskey="p">Podgl±d</a>    </font></div>  </td>  </tr>  <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=b_building&session=cc27cd361a3d' accesskey="b">Budynki</a>    </font></div>  </td>  </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=resources&session=cc27cd361a3d' accesskey="s">Surowce</a>    </font></div>  </td>  </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=buildings&session=cc27cd361a3d&mode=Forschung' accesskey="a">Badania</a>    </font></div>  </td>  </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=buildings&session=cc27cd361a3d&mode=Flotte' accesskey="c">Stocznia</a>    </font></div>  </td>  </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=flotten1&session=cc27cd361a3d&mode=Flotte' accesskey="f">Flota</a>    </font></div>  </td>  </tr>  <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=techtree&session=cc27cd361a3d' accesskey="d">Technologia</a>    </font></div>  </td>  </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=galaxy&session=cc27cd361a3d&no_header=1' accesskey="g">Galaktyka</a>    </font></div>  </td>  </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=buildings&session=cc27cd361a3d&mode=Verteidigung' accesskey="o">Obrona</a>    </font></div>  </td>  </tr> <tr>   <td><img src="http://s11.ogame.onet.pl/evolution/gfx/info-help.jpg" width="110" height="19"></td> </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=allianzen&session=cc27cd361a3d' accesskey="j">Sojusz</a>    </font></div>  </td>  </tr>   <tr>  <td>   <div align="center"><font color="#FFFFFF">    <a href="http://board.ogame.onet.pl/" target="_blank" accesskey="1" >Forum</a><!-- external link to board -->   </font></div>  </td>  </tr>    	<tr>	   <td align=center>	   <a id='darkmatter2' style='cursor:pointer; width:110px;'	     href='index.php?page=micropayment&session=cc27cd361a3d' accesskey="Kantyna"><b>Kantyna</a></b>	   </div>	  </td> 	 </tr>  <tr>  <td>   <div align="center"><font color="#FFFFFF">  <a href='/game/index.php?page=stat&session=cc27cd361a3d' accesskey="y">Statystyki</a>    </font></div>  </td>  </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=suche&session=cc27cd361a3d' accesskey="z">Szukaj</a>    </font></div>  </td>  </tr>  <tr>  <td>   <div align="center"><font color="#FFFFFF">    <a href="http://tutorial.ogame.pl" target="_blank" accesskey="h" >Tutorial</a><!-- external link to ogame tutorial -->   </font></div>  </td>  </tr>  <tr>   <td><img src="http://s11.ogame.onet.pl/evolution/gfx/user-menu.jpg" width="110" height="35"></td> </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=messages&session=cc27cd361a3d' accesskey="w">Wiadomo¶ci</a>    </font></div>  </td>  </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='#' onclick='fenster("index.php?page=notizen&session=cc27cd361a3d&no_header=1", "Bericht");' accesskey="n">Notatki</a>    </font></div>  </td>  </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=buddy&session=cc27cd361a3d' accesskey="l">BuddyLista</a>    </font></div>  </td>  </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=options&session=cc27cd361a3d' accesskey="u">Ustawienia</a>    </font></div>  </td>  </tr>  <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href='/game/index.php?page=logout&session=cc27cd361a3d' accesskey="q">Wyloguj</a>    </font></div>  </td>  </tr>   <tr>  <td>   <div align="center"><font color="#FFFFFF">     <a href="http://ogame.onet.pl/regeln.html" target="_blank" accesskey="6" >Zasady gry</a> <!-- external link to rules -->   </font></div>  </td> </tr> <tr>  <td>   <div align="center"><font color="#FFFFFF">    <a href="http://impressum.gameforge.de/index.php?lang=pl&art=impress&special=&&f_text=b1daf2&f_text_hover=ffffff&f_text_h=061229&f_text_hr=061229&f_text_hrbg=061229&f_text_hrborder=9EBDE4&f_text_font=arial%2C+arial%2C+arial%2C+sans-serif&f_bg=000000" target="_blank" accesskey="2" >Impressum</a> <!-- external link to impressum -->    </font></div>  </td>  </tr> </table> </center>	</div><!-- END LEFTMENU --><!-- CONTENT AREA --><div id='content'><center><table align=top ><tr><td style='background-color:transparent;'><table width="530"><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=1><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/1.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=1>Kopalnia metalu</a></a> (Poziom 11)<br>Dostawca g³ównego surowca do budowy konstrukcji no¶nych budynków i statków kosmicznych.<br>Wymagania: Metal: <b>5.189</b> Kryszta³: <b>1.297</b><br>Czas ukoñczenia: 38min. 55sek.<br><td class=l><a href=index.php?page=b_building&session=cc27cd361a3d&bau=1&cp=34722476><font color=#00FF00>Rozbudowa<br> na poziom  12</font></a></td></tr><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=2><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/2.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=2>Kopalnia kryszta³u</a></a> (Poziom 7)<br>Dostawca g³ównego surowca do budowy elementów elektronicznych i stopów metali.<br>Wymagania: Metal: <b>1.288</b> Kryszta³: <b>644</b><br>Czas ukoñczenia: 11min. 35sek.<br><td class=l><a href=index.php?page=b_building&session=cc27cd361a3d&bau=2&cp=34722476><font color=#00FF00>Rozbudowa<br> na poziom  8</font></a></td></tr><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=3><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/3.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=3>Ekstraktor deuteru</a></a> (Poziom 6)<br>Oddziela atomy deuteru (ciê¿kiego izotopu wodoru) od atomów lekkiego wodoru z wody znajduj±cej siê na planecie.<br>Wymagania: Metal: <b>2.562</b> Kryszta³: <b>854</b><br>Czas ukoñczenia: 20min. 30sek.<br><td class=l><a href=index.php?page=b_building&session=cc27cd361a3d&bau=3&cp=34722476><font color=#00FF00>Rozbudowa<br> na poziom  7</font></a></td></tr><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=4><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/4.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=4>Elektrownia s³oneczna</a></a> (Poziom 12)<br>Elektrownia s³oneczna pozyskuje energiê z promieniowania s³onecznego. Prawie wszystkie budynki potrzebuj± energii do ich eksploatacji.<br>Wymagania: Metal: <b>9.730</b> Kryszta³: <b>3.892</b><br>Czas ukoñczenia: 1godz. 21min. 44sek.<br><td class=l><font color=#FF0000>Rozbudowa<br> na poziom  13</font></td></tr></tr><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=14><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/14.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=14>Fabryka robotów</a></a> (Poziom 3)<br>Fabryka robotów dostarcza tani± si³ê robocz± dziêki której mo¿liwa jest rozbudowa infrastruktury na planecie. Ka¿dy kolejny poziom fabryki robotów zwiêksza szybko¶æ powstawania budowli.<br>Wymagania: Metal: <b>3.200</b> Kryszta³: <b>960</b> Deuter: <b>1.600</b><br>Czas ukoñczenia: 24min. 57sek.<br><td class=l><a href=index.php?page=b_building&session=cc27cd361a3d&bau=14&cp=34722476><font color=#00FF00>Rozbudowa<br> na poziom  4</font></a></td></tr></tr><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=21><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/21.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=21>Stocznia</a><br>W stoczni budowane s± wszelkiego rodzaju statki i systemy obronne.<br>Wymagania: Metal: <b>400</b> Kryszta³: <b>200</b> Deuter: <b>100</b><br>Czas ukoñczenia: 3min. 36sek.<br><td class=l><a href=index.php?page=b_building&session=cc27cd361a3d&bau=21&cp=34722476><font color=#00FF00> Buduj </font></a></td></tr><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=22><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/22.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=22>Magazyn metalu</a><br>Jest to miejsce sk³adowania ¶wie¿o wydobytej rudy metalu, przed jej dalsz± obróbk±.<br>Wymagania: Metal: <b>2.000</b><br>Czas ukoñczenia: 12min. <br><td class=l><a href=index.php?page=b_building&session=cc27cd361a3d&bau=22&cp=34722476><font color=#00FF00> Buduj </font></a></td></tr><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=23><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/23.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=23>Magazyn kryszta³u</a><br>Miejsce sk³adowania ¶wie¿o wydobytych kryszta³ów przed ich dalsz± obróbk±.<br>Wymagania: Metal: <b>2.000</b> Kryszta³: <b>1.000</b><br>Czas ukoñczenia: 18min. <br><td class=l><a href=index.php?page=b_building&session=cc27cd361a3d&bau=23&cp=34722476><font color=#00FF00> Buduj </font></a></td></tr><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=24><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/24.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=24>Zbiornik deuteru</a><br>S± to ogromne zbiorniki s³u¿±ce do przechowywania ¶wie¿o wytworzonego deuteru.<br>Wymagania: Metal: <b>2.000</b> Kryszta³: <b>2.000</b><br>Czas ukoñczenia: 24min. <br><td class=l><a href=index.php?page=b_building&session=cc27cd361a3d&bau=24&cp=34722476><font color=#00FF00> Buduj </font></a></td></tr><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=31><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/31.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=31>Laboratorium badawcze</a></a> (Poziom 2)<br>Aby odkrywaæ nowe technologie, konieczne jest laboratorium badawcze.<br>Wymagania: Metal: <b>800</b> Kryszta³: <b>1.600</b> Deuter: <b>800</b><br>Czas ukoñczenia: 14min. 24sek.<br><td class=l><a href=index.php?page=b_building&session=cc27cd361a3d&bau=31&cp=34722476><font color=#00FF00>Rozbudowa<br> na poziom  3</font></a></td></tr></tr><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=34><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/34.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=34>Depozyt sojuszniczy</a><br>Depozyt sojuszniczy oferuje mo¿liwo¶æ zaopatrywania w paliwo napêdowe zaprzyja¼nionych flot, które  podczas dzia³añ obronnych pomagaj± lub stacjonuj± na orbicie<br>Wymagania: Metal: <b>20.000</b> Kryszta³: <b>40.000</b><br>Czas ukoñczenia: 6godz. 0min. <br><td class=l><font color=#FF0000> Buduj </font></a></td></tr></tr></tr></tr><tr><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=44><img border='0' src="http://s11.ogame.onet.pl/evolution/gebaeude/44.gif" align='top' width='120' height='120'></a></td><td class=l><a href=index.php?page=infos&session=cc27cd361a3d&gid=44>Silos rakietowy</a><br>Silos rakietowy pe³ni rolê magazynu i wyrzutni dla rakiet miêdzyplanetarnych oraz przeciwrakiet.<br>Wymagania: Metal: <b>20.000</b> Kryszta³: <b>20.000</b> Deuter: <b>1.000</b><br>Czas ukoñczenia: 4godz. 0min. <br><td class=l><font color=#FF0000> Buduj </font></a></td></tr>  </table>  <td valign='top'></td></tr></table><br><br><br><br></center></div><!-- END CONTENT AREA --><script>messageboxHeight=0;errorboxHeight=0;contentbox = document.getElementById('content');	</script><div id='messagebox'><center></center></div>	<script>messagebox = document.getElementById('messagebox');</script><div id='errorbox'><center></center></div>	<script>errorbox = document.getElementById('errorbox');</script><script>headerHeight = 81;document.getElementById('menu').style.top='23px';errorbox.style.top=parseInt(headerHeight+messageboxHeight+5)+'px';contentbox.style.top=parseInt(headerHeight+errorboxHeight+messageboxHeight+10)+'px';if (navigator.appName=='Netscape'){if (window.innerWidth<1020){document.body.scroll='no';}   contentbox.style.height=parseInt(window.innerHeight)-messageboxHeight-errorboxHeight-headerHeight-20;document.getElementById('resources').style.width=(window.innerWidth*0.4);} else {if (document.body.offsetWidth<1020){document.body.scroll='no';}   contentbox.style.height=parseInt(document.body.offsetHeight)-messageboxHeight-headerHeight-errorboxHeight-20;document.getElementById('resources').style.width=(document.body.offsetWidth*0.4);}</script> </body></html>*/